/**
 * 
 */
package com.metis.document.parse.dialog.utils.ikseg.cfg;

import java.util.Properties;

import com.metis.document.parse.dialog.utils.ikseg.dic.Dictionary;

public class IkConfiguration {

	//是否启用智能分词
	private  boolean useSmart;


	//是否启用小写处理
	private boolean enableLowercase=true;


	public IkConfiguration(Properties properties) {
		this.useSmart = properties.getOrDefault("use_smart", "false").equals("true");
		this.enableLowercase = properties.getOrDefault("enable_lowercase", "true").equals("true");
		Dictionary.initial(this);

	}
	public boolean isUseSmart() {
		return useSmart;
	}

	public IkConfiguration setUseSmart(boolean useSmart) {
		this.useSmart = useSmart;
		return this;
	}

	public boolean isEnableLowercase() {
		return enableLowercase;
	}
}
